<!doctype html>
<html>
<head>
<meta charset="utf-8">
<ytata:u listname="u" uid="$_GET['uid']"/>
<if condition="$Think.get.type eq 'question'"><assign name="catname" value="TA的提问"/></if>
<if condition="$Think.get.type eq 'answer'"><assign name="catname" value="TA的回答"/></if>
<if condition="$Think.get.type eq 'article'"><assign name="catname" value="TA的文章"/></if>
	<if condition="$Think.get.type eq 'bbs'"><assign name="catname" value="TA的讨论"/></if>
<if condition="$Think.get.type eq 'track'"><assign name="catname" value="TA的动态"/></if>
<if condition="$Think.get.type eq 'exp'"><assign name="catname" value="TA的经验"/></if>
<if condition="$Think.get.type eq 'fans'"><assign name="catname" value="TA的粉丝"/></if>
<title>{:SEO('u-list','title',array('USERNEME'=>$u['user']['username'],'CATNEME'=>$catname))}</title>
<meta name="keywords" content="{:SEO('u-list','keywords',array('USERNEME'=>$u['user']['username'],'CATNEME'=>$catname))}">
<meta name="description" content="{:SEO('u-list','description',array('USERNEME'=>$u['user']['username'],'CATNEME'=>$catname))}">
<link href="__ROOT__/{:C('YTATA_TPL_DIR')}/public/css/common.css" rel="stylesheet" type="text/css">
<link href="__ROOT__/{:C('YTATA_TPL_DIR')}/public/css/u.css" rel="stylesheet" type="text/css">
<script src="__ROOT__/{:C('YTATA_TPL_DIR')}/public/js/jquery.min.js"></script>
</head>

<body>
<include file="public:header" />
<include file="top" />



<div class="umain">

  <include file="left" />
  
  <div class="usc link_gray3">
  
  
  
  
  <!--提问 -->
  <eq name="Think.get.type" value="question">
  <ytata:question listname="q" uid="$_GET['uid']" page="1" num="10"/> 
  
  <div class="info">
	  <div class="tit"><h2>TA的提问<span>({$q.count|default='0'})</span></h2></div>
	 
	  <volist name="q.list" id="li">
	    <div class="qlist">
		 <div class="link_blue">
		 <if condition="$li.issolve eq '1' "><span class="issolve">已解决</span></if>
		<a href="{$li.url}" target="_blank">{$li.title}</a>
		<notempty name="li.reward"><span class="reward">{$li.reward}</span></notempty>
		</div>
		 <a href="{$li.uurl}" target="_blank">{$li.adduser.username}</a><span> 发布于 {$li.addtimestr}</span>&nbsp;&nbsp;|&nbsp;&nbsp;{$li.answercount} 回答
		 <notempty name="li.tags">&nbsp;&nbsp;|<span class="tag"></notempty>
		 <volist name="li.tags" id="tagsli">
		<a href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>
		  </volist> 
		  <notempty name="li.tags"></span></notempty>
		</div>
	  </volist>
	  
	  <empty name="q.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
<!-- -->
<div class="uupage">{$q.page}</div>	
<!-- -->

	</div>
  </eq>
  
  <!--回答 -->
	<eq name="Think.get.type" value="answer">
	<ytata:answer listname="a" uid="$_GET['uid']" page="1" num="10"/> 
	<div class="info">
	  <div class="tit"><h2>TA的回答<span>({$a.count|default='0'})</span></h2></div>
	  
	  <volist name="a.list" id="li">
	    <div class="alist">
		<div class="link_blue">
		<notempty name="li.question.issolve"><span class="issolve">已解决</span></notempty>
		<notempty name="li.question.title">
		<a href="{$li.question.url}" target="_blank">{$li.question.title}</a>
		<else />
		<a href="javascript:void(0)" target="_blank" style="text-decoration:line-through">问题已经被删除</a>
		</notempty>
		<notempty name="li.question.reward"><span class="reward">{$li.question.reward}</span></notempty>
		</div>
		<div class="text substring">{$li.content_str}</div>
		 <a href="{$li.user.user_url}" target="_blank">{$li.user.username}</a><span> 回答于 {$li.addtime_str}</span>
		 <eq name="li.optimal" value="1"><span class="optimal">最佳答案</span></eq>
		</div>
	  </volist>
	  <empty name="a.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
<!-- -->
<div class="uupage">{$a.page}</div>	
<!-- -->


	</div>
	</eq>
	
	<!-- -->  
  <!--TA的文章 -->
	<eq name="Think.get.type" value="article">
	<ytata:article listname="new"  uid="$_GET['uid']" page="1" num="10" />
	<div class="info">
	  <div class="tit"><h2>TA的文章<span>({$new.count|default='0'})</span></h2></div>
	  
	  

<volist name="new.list" id="li">
<div class="newlist">
			<div class="ltxt1">
					  <if condition="$li.excellent eq '1' "><span class="exc">精华</span></if>
						<a href="{$li.url}">{$li.title}</a>
			</div>
			<div class="ltxt2">
			{$li.addtime_str}&nbsp;/&nbsp;人气<span class="co">{$li.click}</span>&nbsp;/&nbsp;推荐<span class="co">{$li.praise}</span>
			</div>
			<div class="clear"></div>
</div>
</volist>
<empty name="new.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
 
 <!-- -->
<div class="uupage">{$new.page}</div>	
<!-- -->
	</div>
	</eq>
	
		<!--主题 -->
		<eq name="Think.get.type" value="bbs">
			<ytata:bbs listname="b" uid="$_GET['uid']" page="1" num="10"/>
		
			<div class="info">
				<div class="tit"><h2>TA的主题<span>({$b.count|default='0'})</span></h2></div>
			
				<volist name="b.list" id="li">
					<div class="qlist">
						<div class="link_blue">
							<a href="{$li.url}" target="_blank">{$li.content_cut}</a>
						</div>
						<a href="{$li.adduser.user_url}" target="_blank">{$li.adduser.username}</a><span> 发布于 {$li.addtimestr}</span>&nbsp;&nbsp;|&nbsp;&nbsp;{$li.replycount} 回复
						<notempty name="li.tags">&nbsp;&nbsp;|<span class="tag"></notempty>
						<volist name="li.tags" id="tagsli">
							<a href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>
						</volist>
						<notempty name="li.tags"></span></notempty>
					</div>
				</volist>
			
				<empty name="q.list">
					<div class="infoempty"> 暂时木有内容呀～～</div>
				</empty>
				<!-- -->
				<div class="uupage">{$q.page}</div>
				<!-- -->
		
			</div>
		</eq>


  <!--TA的动态 -->
	<eq name="Think.get.type" value="track">
	<ytata:track listname="track" uid="$_GET['uid']" page="1" num="10"/>
    <div class="info">
			  <div class="tit"><h2>TA的动态<span>({$track.count|default='0'})</span></h2></div>



<volist name="track.list" id="li">
<div class="qtxt">
<a href="{$li.user.user_url}" target="_blank">{$li.user.username}</a>
&nbsp;{$li.type_str}&nbsp;
{$li.addtime_str}

<notempty name="li.question">

  <div class="text substring link_blue">
  <a href="{$li.question.url}" target="_blank">{$li.question.title}</a>
  <notempty name="li.question.reward"><span class="reward">{$li.question.reward}</span></notempty>
  </div>
</notempty>


<notempty name="li.answer">
  <div class="text substring" >{$li.answer.content}</div>
</notempty>


</div>

</volist>
<empty name="track.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>

 <!-- -->
<div class="uupage">{$track.page}</div>	
<!-- -->
</div>
</eq>
	
 
 
<!--TA的经验 -->
	<eq name="Think.get.type" value="exp">
	<ytata:exps listname="exp" uid="$_GET['uid']" type="2" page="1" num="10"/>
    <div class="info">
			  <div class="tit"><h2>TA的经验<span>({$u.user.exp})</span></h2></div>



<volist name="exp.list" id="li">
<div class="explist">
<span class="exppic">+{$li.exp}</span>{$li.txt|default="未知"} <span class="time">{$li.addtime|date="Y-m-d H:i",###}</span>

 
 

</div>

</volist>
<empty name="exp.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>

 <!-- -->
<div class="uupage">{$exp.page}</div>	
<!-- -->
</div>
</eq>
 
<!--TA的粉丝 -->
	<eq name="Think.get.type" value="fans">
	<ytata:fans listname="fans" yuid="$_GET['uid']"  page="1" num="10"/>
    <div class="info">
			  <div class="tit"><h2>TA的粉丝<span>({$u.user.fans})</span></h2></div>



<volist name="fans.list" id="li">
<div class="fanslist link_blue">
  <div class="pic"><a href="{$li.user.user_url}"><img src="{$li.user.avatar}" border="0"></a></div>
  <div class="uname"><a href="{$li.user.user_url}">{$li.user.username}</a>&nbsp;<span class="userLV">LV{$li.user.exp_lv}</span>
  {$li.user.count_praise}赞同 / {$li.user.count_article}分享 / {$li.user.count_answer}回答
  </div>
  
  <div class="followbtn">
  <eq name="Think.session.ytata.uid" value=""><!--未登录 -->
    <div class="btn_white btn_border btn_inline_small J_user_login">加关注</div>
	<else/><!--已登录 -->
	<eq name="li.user.is_follow" value="1">
		<div class="btn_white btn_border btn_inline_small J_follow" uid="{$li.user.uid}">已关注</div>
		<else/>
		<div class="btn_white btn_border btn_inline_small J_follow" uid="{$li.user.uid}">加关注</div>
		</eq>
 
	</eq>
  </div>
  <div class="clear"></div>
</div>

</volist>
<empty name="fans.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>

 <!-- -->
<div class="uupage">{$fans.page}</div>	
<!-- -->
</div>
</eq>

  
    </div>
  
  <include file="right" />
  <div class="clear"></div>
</div>
 

<include file="public:footer" />
<script type="text/javascript">
$(document).ready(function()
{
 
//加关注
$('.J_follow').live('click',function() {
		btn=$(this);
		uid=btn.attr('uid');
		 $.getJSON(ajaxURL, { act: "ajax_user_follow",uid:uid}, function(json){
					if (json.status==0){
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
					disapperTooltip("success", json.content);
					if (btn.html()=='已关注')	{
					btn.html('加关注');
					}else{
					btn.html('已关注');
					}
					}else{
						disapperTooltip("remind","未知错误");
					}
		});
});




});
</script>
</body>
</html>
